package com.xja.shoppingmall.comfig;

import org.springframework.context.annotation.Bean;
import org.springframework.stereotype.Component;
import org.springframework.web.client.RestTemplate;

/**
 * @author CHENCHEN
 * @title   网关需要注入到容器中的Bean
 * @createTime 2021-12-1219:58
 */
@Component
public class GatewayBeanConfig {

    @Bean
    public RestTemplate restTemplate(){
        return new RestTemplate();
    }
}
